<template>
  <component :is="tag" :class="classes">
    <slot></slot>
  </component>
</template>

<script>
  export default {
    componentName: 'ECellbox',
    props: {
      middle: {
        type: Boolean
      },
      gutter: {
        type: Number,
        default: 0
      },
      tag: {
        type: [String, Object],
        default: 'div'
      },
      itemTag: {
        type: [String, Object],
        default: 'div'
      }
    },
    computed: {
      classes () {
        return {
          'cellbox': true,
          'cellbox-middle': this.middle
        }
      }
    }
  }
</script>
